var express = require('express');
var router = express.Router();
const { getAdmins, freezeAdmins, exposureFreezeAdmins, updatePassword } = require('../service/adminsService');

router.get('/getAdmins', async function (req, res, next) {
    const data = await getAdmins(req.query);
    res.send(data)
});

router.post('/freezeAdmins', async function (req, res, next) {
    const data = await freezeAdmins(req.body);
    res.send(data)
});

router.post('/exposureFreezeAdmins', async function (req, res, next) {
    const data = await exposureFreezeAdmins(req.body);
    res.send(data)
});
router.post('/updatePassword', async function (req, res, next) {
    const data = await updatePassword(req.body);
    res.send(data)
});
module.exports = router;
